package sz.szsmk.citizencard.util;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;


import org.greenrobot.eventbus.EventBus;

import java.util.ArrayList;
import java.util.List;

import sz.szsmk.citizencard.BuildConfig;
import sz.szsmk.citizencard.DaggerApplication;
import sz.szsmk.citizencard.db.DaoSession;
import sz.szsmk.citizencard.db.SysConfDao;
import sz.szsmk.citizencard.log.L;
import sz.szsmk.citizencard.model.network.bean.response.HomeHeadFuncResponse;
import sz.szsmk.citizencard.model.network.bean.response.QueryAllFunctionNewRes;
import sz.szsmk.citizencard.model.network.dzbean.res.MessageEvent;
import sz.szsmk.citizencard.model.network.dzbean.res.PreAuthResult;
import sz.szsmk.citizencard.model.network.dzbean.res.SysConf;
import sz.szsmk.citizencard.mvp.contract.ISearchAllContact;
import sz.szsmk.citizencard.mvp.presenter.APPHomePresenter;
import sz.szsmk.citizencard.ui.activity.IMainActivity;
import sz.szsmk.citizencard.ui.activity.SearchAllActivity;
import sz.szsmk.citizencard.ui.activity.YouzanActivity;
import sz.szsmk.citizencard.ui.dzsmkavtivity.RealNameAuthenticationActivity;
import sz.szsmk.citizencard.ui.dzsmkavtivity.SafeSettingActivity;
import sz.szsmk.citizencard.ui.dzsmkfragment.BaseFragment;
import sz.szsmk.citizencard.ui.newversion.config.Constants;

/**
 * Copyright (c)2019
 * author: zdh
 * created on: 2019/1/16 16:53
 * description:
 */
public class JumpThirdView {

    private static String murl;

    public static void toJumpView(Context mContext, String url, String sys_label, int need_header, APPHomePresenter mPresenter, String type) {
        toNewJumpView(mContext,url,sys_label,need_header,mPresenter,type,null);

    }

    public static void baseToJumpView(Context mContext, String url, String sys_label, int need_header, String type) {

        if (url == null) {
            return;
        }
        String access_token = ACache.get(mContext).getAsString("access_token");
        if(sys_label != null && needLogin(sys_label)){
            if(access_token == null){
                JumpUtils.jump(mContext, "login", 0);
                return;
            }
        }


//        if (access_token == null) {
//            JumpUtils.jump(mContext, "login", 0);
//        } else {

            if (url.equals("citizenCard")) {
//                Bundle bundle = new Bundle();
//                JumpUtils.gotoNeedGesture(mContext, "elecCitizenCard", bundle);
                try {
                    ((IMainActivity) mContext).getmPresenter().getOpenId();
                }catch (Exception e){
                    ((SearchAllActivity) mContext).getmPresenter().getOpenId();
                }
            } else if (url.equals("proto:myElectricCard")) {
                JumpUtils.jump(mContext, "elecCitizenCard", 0);

//                    mPresenter.queryCitizenCard();
            } else if (url.equals("proto:bus")) {
                JumpUtils.jump(mContext, "BusHomeActivity", 0);
                return;
            } else if (url.equals("proto:citizenCard_charge")) {
                //云闪充
                if (Constant.ORDER_STATUS.equals("1")) {
                    Bundle bundle = new Bundle();
                    bundle.putString("url", Constant.BASE_URL + "app-front-end/#/charge/main?access_token=" + access_token);
                    JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                } else if (Constant.ORDER_STATUS.equals("0")) {
                    Bundle bundle = new Bundle();
                    bundle.putString("url", Constant.BASE_URL + "app-front-end/#/charge/guide?access_token=" + access_token);
                    JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                }else {//搜索跳转的 云闪充充值
                    Bundle bundle = new Bundle();
                    bundle.putString("url", Constant.BASE_URL + "app-front-end/#/charge/main?access_token=" + access_token);
                    JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                }

            } else if (url.equals("proto:consumer_business")) {
                //消费0 商家
                JumpUtils.jump(mContext, "business", 0);
                return;
            } else if (url.equals("proto:add_cards")) {
                //发消息 EventBus  到  MainActivity

                MessageEvent message = new MessageEvent(MessageEvent.CODE_JUMP_DZSMK);
                EventBus.getDefault().post(message);

//                Constant.isBind = true;
//                JumpUtils.jump(mContext, "addnewcard", 0);
                return;
            } else if (url.equals("proto:myAddress")) {
                //地址管理
                JumpUtils.jump(mContext, "adressadmin", 0);
                return;
            } else if (url.contains("youzan")) {
                ACache.get(DaggerApplication.getIns()).remove("sykt");
                ACache.get(DaggerApplication.getIns()).put("sykt", "sykt");

                Intent intent = new Intent(mContext, YouzanActivity.class);
                intent.putExtra(YouzanActivity.KEY_URL, url);
                mContext.startActivity(intent);
            } else if (url.equals("proto:myDonation")) {

                //我的捐款
                JumpUtils.jump(mContext, "DonationActivity", 0);
                return;
            } else if (url.equals("proto:myCollection")) {
                //我的收藏
                JumpUtils.jump(mContext, "collection", 0);
                return;
            } else if (url.equals("proto:fund")) {
                //公积金
//                mPresenter.selectUserAuth("gjj");
//                if (type.equals("gjj")) {
                String gjjAuth = Constant.GJJ_AUTH;
                //0未授权，1已授权，2未实名(L3认证)
                if (gjjAuth.equals("2")) {
                    Bundle bundle = new Bundle();
                    bundle.putInt("intotype", 1);
                    bundle.putString("choosetype", "gjj");
                    JumpUtils.jumptoNatvie(mContext, "RealNameActivity", 0, bundle);
                } else if (gjjAuth.equals("1")) {
                    Bundle bundle = new Bundle();
                    String path = Constant.BASE_URL + "app-front-end/#/fund/main?access_token=" + access_token;
                    bundle.putString("url", path);
                    bundle.putString(Constant.CUST_NAME, Constant.ID_NAME);
                    JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                } else if (gjjAuth.equals("0")) {

                    url = Constant.BASE_URL + "app-front-end/#/fund/main?access_token=" + access_token;
                    Bundle bundle = new Bundle();
                    bundle.putString("url", url);
                    JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                }
                return;
            } else if (url.equals("proto:social")) {

                String gjjAuth = Constant.SB_AUTH;
                //0未授权，1已授权，2未实名(L3认证)
                if (gjjAuth.equals("2")) {
                    Bundle bundle = new Bundle();
                    bundle.putInt("intotype", 1);
                    bundle.putString("choosetype", "sb");
                    JumpUtils.jumptoNatvie(mContext, "RealNameActivity", 0, bundle);
                } else if (gjjAuth.equals("1")) {
                    Bundle bundle = new Bundle();
                    String path = Constant.BASE_URL + "app-front-end/#/social/main?access_token=" + access_token;
                    bundle.putString("url", path);
                    JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);

                } else if (gjjAuth.equals("0")) {
                    url = Constant.BASE_URL + "app-front-end/#/fundAndSociety/authPage?access_token=" + access_token + "&type=1&name=" + Constant.ID_NAME;

                    Bundle bundle = new Bundle();
                    bundle.putString("url", url);
                    JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                }

            } else if (url.equals("proto:osmanthus")) {
                String ghfAuth = Constant.GHF_AUTH;
                //0未授权，1已授权，2未实名(L3认证)
                if (ghfAuth.equals("2")) {
                    Bundle bundle = new Bundle();
                    bundle.putInt("intotype", 1);
                    bundle.putString("choosetype", "ghf");
                    JumpUtils.jumptoNatvie(mContext, "RealNameActivity", 0, bundle);
                } else if (ghfAuth.equals("1")) {

                    String url1 = Constant.SZ_URL +"?"+ Constant.EXTENT;
                    Bundle bundle = new Bundle();
                    bundle.putString("url", url1);
                    bundle.putString(Constant.TITLE, "桂花分");
                    JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);

                } else if (ghfAuth.equals("0")) {
                    String murl = Constant.SZ_URL +"?"+ Constant.EXTENT;
                    Bundle bundle = new Bundle();
                    bundle.putString("url", murl);
                    bundle.putString(Constant.TITLE, "桂花分");
                    JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                }

            } else if (url.equals("proto:subway")) {
                JumpUtils.jump(mContext, "SubwayHomeActivity", 0);
            } else if (url.equals("proto:balance_inquiry")) {
                //余额查询
                JumpUtils.jump(mContext, "querybalance", 0);
            } else if (url.equals("proto:myCitizenCard")) {
                //市民卡首页
                JumpUtils.jump(mContext, "MyCityCardActivity", 0);
            } else if (url.equals("proto:service_network")) {
                //服务网点
                JumpUtils.jump(mContext, "nerwork", 0);

            } else {
//            String access_token = ACache.get(mContext).getAsString("access_token");
//                if (access_token == null) {
//                    Toast.makeText(mContext, "请登录", Toast.LENGTH_SHORT).show();
//                } else {
                    /**
                     * sys_label参数判断逻辑
                     * 1.sys_label为null  或者sys_label 为"";不用管 直接跳转
                     * 2.sys_label为NOHEADER 拼接access_token
                     * 3.sys_label不为空，且不为NOHEADER，调张旺接口
                     */
                    L.e(Constant.TITLE, "url--" + url + "----syslabel---" + sys_label);
                    if (url == null || url.trim().equals("")) {
                        return;
                    }
                    Bundle bundle = new Bundle();
//                            int need_header = bean.getNeed_header();
                    if (need_header == 1) {
                        bundle.putString(Constant.TITLE, "");
                    }
                    if (sys_label != null && sys_label.equals("NOHEADER")) {
                        bundle.putString("url", url + "?access_token=" + access_token);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                    } else if (sys_label != null && sys_label.equals("ZZK")) {
                        bundle.putString("url", url + "?access_token=" + access_token);
//                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);

                    } else if (sys_label != null && sys_label.equals("HUIMIN")) {
                        if (url.contains("?")) {
                            murl = url + "&" + Constant.EXTENT;
                        } else {
                            murl = url + "?" + Constant.EXTENT;
                        }
                        bundle.putString("stt", "stt");
                        bundle.putString("url", murl);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);

                    } else if (sys_label != null && sys_label.equals("FINANCE")){

                        MessageEvent message = new MessageEvent(MessageEvent.CODE_OPENNG);
                        message.setData(url);
                        EventBus.getDefault().post(message);

                    }else if (sys_label != null && sys_label.equals("EKATONG")){
                        //天谕sdk
                    } else if (sys_label != null && sys_label.equals("PKACHONGZHI")){
                        //天谕sdk
                    } else if (sys_label != null && sys_label.length()== 0) {
                        bundle.putString("url", url);
                        bundle.putString(Constant.TITLE, "");
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                    } else if(sys_label != null && sys_label.equals("HMDS")){
                        //授权开始
                        MessageEvent message = new MessageEvent(MessageEvent.CODE_LIFEAUTH);
                        message.setData(url);
                        EventBus.getDefault().post(message);
                    } else if (sys_label == null) {
                        bundle.putString("url", url);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                    }else{
                        bundle.putString("url", url + "?access_token=" + access_token);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                    }
        }
    }



    public static void toNewJumpView(Context mContext, String url, String sys_label, int need_header,
                                  APPHomePresenter mPresenter, String type, QueryAllFunctionNewRes.ClassListBean.FunctionListBean bean) {

        if(bean!=null){
            mPresenter.userBehaviorBrowse(bean.getModularId());
        }

        if (url == null) {
            return;
        }
        String access_token = ACache.get(mContext).getAsString("access_token");
        if (access_token == null) {
            JumpUtils.jump(mContext, "login", 0);
        } else {

            if (url.equals("citizenCard")) {
                ((IMainActivity) mContext).getmPresenter().getOpenId();
                return;
            } else if (url.equals("proto:bus")) {
                JumpUtils.jump(mContext, "BusHomeActivity", 0);
                return;
            } else if (url.equals("proto:fund")) {
                //公积金
                mPresenter.selectUserAuth("gjj");
                return;
            } else if (url.equals("proto:add_cards")) {

//            mPresenter.queryCitizenCard();

                ((IMainActivity) mContext).queryCard("home");
                return;
            } else if (url.equals("proto:social")) {
                mPresenter.selectUserAuth("sb");
                return;
            } else if (url.equals("proto:osmanthus")) {
//                Toast.makeText(mContext, "桂花分", Toast.LENGTH_SHORT).show();

                mPresenter.selectUserAuth("ghf");
                return;
            } else if (url.equals("proto:subway")) {
                JumpUtils.jump(mContext, "SubwayHomeActivity", 0);
                return;
            } else if (url.equals("proto:consumer_business")) {
                JumpUtils.jump(mContext, "business", 0);
                return;
            } else if (url.equals("proto:balance_inquiry")) {
                //余额查询
                JumpUtils.jump(mContext, "querybalance", 0);
                return;
            } else if (url.contains("youzan")) {
                ACache.get(DaggerApplication.getIns()).remove("sykt");
                ACache.get(DaggerApplication.getIns()).put("sykt", "sykt");

                Intent intent = new Intent(mContext, YouzanActivity.class);
                intent.putExtra(YouzanActivity.KEY_URL, url);
                mContext.startActivity(intent);
            } else if (url.equals("proto:myDonation")) {
                //我的捐款
                JumpUtils.jump(mContext, "DonationActivity", 0);
            } else if (url.equals("proto:service_network")) {
                //服务网点
                JumpUtils.jump(mContext, "nerwork", 0);
                return;
            } else if (url.equals("proto:citizenCard_charge")) {
                //云闪充
//                mPresenter.checkSuccessOrderStatus("");

                if (Constant.ORDER_STATUS.equals("1")) {
                    Bundle bundle = new Bundle();
                    bundle.putString("url", Constant.BASE_URL + "app-front-end/#/charge/main?access_token=" + access_token);
                    JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                } else if (Constant.ORDER_STATUS.equals("0")) {
                    Bundle bundle = new Bundle();
                    bundle.putString("url", Constant.BASE_URL + "app-front-end/#/charge/guide?access_token=" + access_token);
                    JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                }
                return;
            } if(url.equals("proto:finance")){
                MessageEvent message = new MessageEvent(MessageEvent.CODE_OPENNG);
                EventBus.getDefault().post(message);
            } else {
//            String access_token = ACache.get(mContext).getAsString("access_token");
                if (access_token == null) {
                    Toast.makeText(mContext, "请登录", Toast.LENGTH_SHORT).show();
                } else {
                    /**
                     * sys_label参数判断逻辑
                     * 1.sys_label为null  或者sys_label 为"";不用管 直接跳转
                     * 2.sys_label为NOHEADER 拼接access_token
                     * 3.sys_label不为空，且不为NOHEADER，调张旺接口
                     */
                    L.e(Constant.TITLE, "url--" + url + "----syslabel---" + sys_label);
                    if (url == null || url.trim().equals("")) {
                        return;
                    }

                    Bundle bundle = new Bundle();
//                            int need_header = bean.getNeed_header();
                    if (need_header == 1) {
                        bundle.putString(Constant.TITLE, "");
                    }
                    if (sys_label != null && sys_label.equals("NOHEADER")) {
                        bundle.putString("url", url + "?access_token=" + access_token);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                    } else if (sys_label != null && sys_label.equals("ZZK")) {

                        bundle.putString("url", url + "?access_token=" + access_token);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);

                    } else if (sys_label != null && sys_label.equals("HUIMIN")) {
                        bundle.putString("stt", "stt");

                        if (url.contains("?")) {
                            murl = url + "&" + Constant.EXTENT;
                        } else {
                            murl = url + "?" + Constant.EXTENT;
                        }

                        bundle.putString("url", murl);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);

                    } else if (sys_label != null && sys_label.equals("FINANCE")){
                        if (url.contains("?")) {
                            murl = url + "&" + Constant.EXTENT_FINANCE;
                        } else {
                            murl = url + "?" + Constant.EXTENT_FINANCE;
                        }

                        bundle.putString("url", murl);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                    }else if (sys_label != null && sys_label.length() == 0) {
                        bundle.putString("url", url);
//                        bundle.putString(Constant.TITLE, "");
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                    } else if (sys_label == null) {
                        bundle.putString("url", url);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                    }
                }
            }
        }
    }

    public static void toNewJumpViewHead(Context mContext, String url, String sys_label, int need_header,
                                     APPHomePresenter mPresenter, String type, HomeHeadFuncResponse.FunctionListBean bean) {

        if(bean!=null){
            mPresenter.userBehaviorBrowse(bean.getModularId());
        }

        if (url == null) {
            return;
        }
        String access_token = ACache.get(mContext).getAsString("access_token");
        if (access_token == null) {
            JumpUtils.jump(mContext, "login", 0);
        } else {

            if (url.equals("citizenCard")) {

                JumpUtils.jumptoNatvie(mContext, Constants.SCANQRCODECHECKACTIVITY, 0, null);

//                ((IMainActivity) mContext).getmPresenter().getOpenId();
                return;
            } else if (url.equals("proto:bus")) {
                JumpUtils.jump(mContext, "BusHomeActivity", 0);
                return;
            } else if (url.equals("proto:fund")) {
                //公积金
                mPresenter.selectUserAuth("gjj");
                return;
            } else if (url.equals("proto:add_cards")) {

//            mPresenter.queryCitizenCard();

                ((IMainActivity) mContext).queryCard("home");
                return;
            } else if (url.equals("proto:social")) {
                mPresenter.selectUserAuth("sb");
                return;
            } else if (url.equals("proto:osmanthus")) {
//                Toast.makeText(mContext, "桂花分", Toast.LENGTH_SHORT).show();

                mPresenter.selectUserAuth("ghf");
                return;
            } else if (url.equals("proto:subway")) {
                JumpUtils.jump(mContext, "SubwayHomeActivity", 0);
                return;
            } else if (url.equals("proto:consumer_business")) {
                JumpUtils.jump(mContext, "business", 0);
                return;
            } else if (url.equals("proto:balance_inquiry")) {
                //余额查询
                JumpUtils.jump(mContext, "querybalance", 0);
                return;
            } else if (url.contains("youzan")) {
                ACache.get(DaggerApplication.getIns()).remove("sykt");
                ACache.get(DaggerApplication.getIns()).put("sykt", "sykt");

                Intent intent = new Intent(mContext, YouzanActivity.class);
                intent.putExtra(YouzanActivity.KEY_URL, url);
                mContext.startActivity(intent);
            } else if (url.equals("proto:myDonation")) {
                //我的捐款
                JumpUtils.jump(mContext, "DonationActivity", 0);
            } else if (url.equals("proto:service_network")) {
                //服务网点
                JumpUtils.jump(mContext, "nerwork", 0);
                return;
            } else if (url.equals("proto:citizenCard_charge")) {
                //云闪充
//                mPresenter.checkSuccessOrderStatus("");

                if (Constant.ORDER_STATUS.equals("1")) {
                    Bundle bundle = new Bundle();
                    bundle.putString("url", Constant.BASE_URL + "app-front-end/#/charge/main?access_token=" + access_token);
                    JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                } else if (Constant.ORDER_STATUS.equals("0")) {
                    Bundle bundle = new Bundle();
                    bundle.putString("url", Constant.BASE_URL + "app-front-end/#/charge/guide?access_token=" + access_token);
                    JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                }
                return;
            } if(url.equals("proto:finance")){
                MessageEvent message = new MessageEvent(MessageEvent.CODE_OPENNG);
                EventBus.getDefault().post(message);
            } else {
//            String access_token = ACache.get(mContext).getAsString("access_token");
                if (access_token == null) {
                    Toast.makeText(mContext, "请登录", Toast.LENGTH_SHORT).show();
                } else {
                    /**
                     * sys_label参数判断逻辑
                     * 1.sys_label为null  或者sys_label 为"";不用管 直接跳转
                     * 2.sys_label为NOHEADER 拼接access_token
                     * 3.sys_label不为空，且不为NOHEADER，调张旺接口
                     */
                    L.e(Constant.TITLE, "url--" + url + "----syslabel---" + sys_label);
                    if (url == null || url.trim().equals("")) {
                        return;
                    }

                    Bundle bundle = new Bundle();
//                            int need_header = bean.getNeed_header();
                    if (need_header == 1) {
                        bundle.putString(Constant.TITLE, "");
                    }
                    if (sys_label != null && sys_label.equals("NOHEADER")) {
                        bundle.putString("url", url + "?access_token=" + access_token);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                    } else if (sys_label != null && sys_label.equals("ZZK")) {

                        bundle.putString("url", url + "?access_token=" + access_token);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
//                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);

                    } else if (sys_label != null && sys_label.equals("HUIMIN")) {
//                        if (url.contains("?")) {
//                            murl = url + "&" + Constant.EXTENT;
//                        } else {
//                            murl = url + "?" + Constant.EXTENT;
//                        }
//                        //苏体通需要自定义ua 传递标识
//                        if (type.equals("tyhm")) {
                        bundle.putString("stt", "stt");
//                        bundle.putString("url", url);
//                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);


                        if (url.contains("?")) {
                            murl = url + "&" + Constant.EXTENT;
                        } else {
                            murl = url + "?" + Constant.EXTENT;
                        }

                        bundle.putString("url", murl);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);

//                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                    } else if (sys_label != null && sys_label.length() == 0) {
                        bundle.putString("url", url);
//                        bundle.putString(Constant.TITLE, "");
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                    } else if (sys_label == null) {
                        bundle.putString("url", url);
                        JumpUtils.jumptoNatvie(mContext, "webView", 0, bundle);
                    }
                }
            }
        }
    }



    private static boolean needLogin(String sys_label) {
//        苏州市民卡微信快捷登陆 SMK
//        苏州转转卡 ZZK
//        惠民体育惠民休闲 HUIMIN
//        苏州市民卡内部 SZ
//        苏e行 METRO
//        交通信用WAP版 JTXY
//        美团公交 MTBUS
//        桂花分 GUIHUAFEN
//        助餐体系 ZCTX
//        默认 NOHEADER
        //根据需求 sys_label 碰到 以上字段 需要登录
        List<String> list = new ArrayList<>();
        list.add("SMK");
        list.add("ZZK");

        list.add("HUIMIN");
        list.add("SZ");
        list.add("METRO");
        list.add("JTXY");

        list.add("MTBUS");
        list.add("GUIHUAFEN");
        list.add("ZCTX");
        list.add("JTXY");
        list.add("NOHEADER");

        return list.contains(sys_label);

    }
}
